package com.cjkj.system.api;

import com.cjkj.common.core.constant.ServiceNameConstants;
import com.cjkj.common.core.web.domain.AjaxResult;
import com.cjkj.system.api.factory.RemoteTJ01HealthReportFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 请求睡眠监测垫报告接口
 */
@FeignClient(contextId = "remoteHealthReportMattressService",value = ServiceNameConstants.SYSTEM_SERVICE,fallbackFactory = RemoteTJ01HealthReportFallbackFactory.class )
public interface RemoteTJ01HealthReportService {

    @GetMapping("/reports/tj01/sleep")
    AjaxResult getSleepReports(@RequestParam("visitNo") Long visitNo,
                               @RequestParam("startTime") String startTime);

    @GetMapping("/reports/tj01/heartRate")
    AjaxResult getHeartReports(@RequestParam("visitNo") Long visitNo,
                               @RequestParam("startTime") String startTime);

    @GetMapping("/reports/tj01/breathRate")
    AjaxResult getBreatheReports(@RequestParam("visitNo") Long visitNo,
                               @RequestParam("startTime") String startTime);

    @GetMapping("/reports/tj01/spO2")
    AjaxResult getSpo2Reports(@RequestParam("visitNo") Long visitNo,
                                 @RequestParam("startTime") String startTime);

    @GetMapping("/reports/tj01/getSleepReportData")
    AjaxResult requestPrintReportData(@RequestParam("visitNos") String visitNos,
                                      @RequestParam("reportItems") String reportItems,
                                      @RequestParam("reportDate") String reportDate);
}
